<?php

defined('_JEXEC') or die('Restricted access');


function tptabstatic1( $tab1a_name, $tab2a_name, $tab3a_name, $tab4a_name,$tp_user11, $tp_user12, $tp_user13, $tp_user14) {

echo "<!-- start tab 1 -->\n";
if (($tp_user11) || ($tp_user12) || ($tp_user13) || ($tp_user14)) { 
echo "<div id=\"tab1\">\n";
echo "<div class=\"tabber\">\n";
	if ($tp_user11) { 
		echo "<div class=\"tabbertab\">\n"; ?>
		
		<jdoc:include type="modules" name="user11" style="xhtml" />
		<?php  
		echo "<h2>\n";
		echo $tab1a_name;
		echo "</h2>\n";
		echo "</div>\n";
	}
	if ($tp_user12) { 
		echo "<div class=\"tabbertab\">\n"; ?>
		
		<jdoc:include type="modules" name="user12" style="xhtml" />
		<?php
		echo "<h2>\n";
		echo $tab2a_name;
		echo "</h2>\n"; 
		echo "</div>\n";
	}
		if ($tp_user13) { 
		echo "<div class=\"tabbertab\">\n"; ?>
		
		<jdoc:include type="modules" name="user13" style="xhtml" />
		<?php
		echo "<h2>\n";
		echo $tab3a_name;
		echo "</h2>\n";
		echo "</div>\n";
	}
		if ($tp_user14) { 
		echo "<div class=\"tabbertab\">\n"; ?>
		
		<jdoc:include type="modules" name="user14" style="xhtml" />
		<?php 
		echo "<h2>\n";
		echo $tab4a_name;
		echo "</h2>\n";
		echo "</div>\n";
	}
		
	echo "</div>\n";
	echo "<div style=\"clear:both; line-height:1px;\"> &nbsp;</div>	\n";
	echo "</div>\n";
	}
}
	
	
							
function tptabstatic2($tab1b_name, $tab2b_name, $tab3b_name, $tab4b_name,$tp_user21, $tp_user22, $tp_user23, $tp_user24) {


echo "<!-- start tab 2 -->\n";

if (($tp_user21) || ($tp_user22) || ($tp_user23) || ($tp_user24)) { 
echo "<div id=\"tab2\">\n";
echo "<div class=\"tabber\">\n";
		if ($tp_user21) { 
		echo "<div class=\"tabbertab\">\n";
		echo "<h2>\n";
		echo $tab1b_name;
		echo "</h2>\n"; ?>
		<jdoc:include type="modules" name="user21" style="xhtml" />
		<?php 
		echo "</div>\n";
	}
		if ($tp_user22) { 
		echo "<div class=\"tabbertab\">\n";
		echo "<h2>\n";
		echo $tab2b_name;
		echo "</h2>\n"; ?>
		<jdoc:include type="modules" name="user22" style="xhtml" />
		<?php 
		echo "</div>\n";
	}
		if ($tp_user23) { 
		echo "<div class=\"tabbertab\">\n";
		echo "<h2>\n";
		echo $tab3b_name;
		echo "</h2>\n"; ?>
		<jdoc:include type="modules" name="user23" style="xhtml" />
		<?php 
		echo "</div>\n";
	}
		if ($tp_user24) { 
		echo "<div class=\"tabbertab\">\n";
		echo "<h2>\n";
		echo $tab4b_name;
		echo "</h2>\n"; ?>
		<jdoc:include type="modules" name="user24" style="xhtml" />
		<?php 
		echo "</div>\n";
	}
		
	echo "</div>\n";
	echo "<div style=\"clear:both; line-height:1px;\"> &nbsp;</div>	\n";
	echo "</div>\n";
	}
}
	

function tptabstatic3($tab1c_name, $tab2c_name, $tab3c_name, $tab4c_name,$tp_user31, $tp_user32, $tp_user33, $tp_user34) {


echo "<!-- start tab 3 -->\n";

if (($tp_user31) || ($tp_user32) || ($tp_user33) || ($tp_user34)) { 
echo "<div id=\"tab3\">\n";
echo "<div class=\"tabber\">\n";
		if ($tp_user31) { 
		echo "<div class=\"tabbertab\">\n";
		echo "<h2>\n";
		echo $tab1c_name;
		echo "</h2>\n"; ?>
		<jdoc:include type="modules" name="user31" style="xhtml" />
		<?php 
		echo "</div>\n";
	}
		if ($tp_user32) { 
		echo "<div class=\"tabbertab\">\n";
		echo "<h2>\n";
		echo $tab2c_name;
		echo "</h2>\n"; ?>
		<jdoc:include type="modules" name="user32" style="xhtml" />
		<?php 
		echo "</div>\n";
	}
		if ($tp_user33) { 
		echo "<div class=\"tabbertab\">\n";
		echo "<h2>\n";
		echo $tab3c_name;
		echo "</h2>\n"; ?>
		<jdoc:include type="modules" name="user33" style="xhtml" />
		<?php 
		echo "</div>\n";
	}
		if ($tp_user34) { 
		echo "<div class=\"tabbertab\">\n";
		echo "<h2>\n";
		echo $tab4c_name;
		echo "</h2>\n"; ?>
		<jdoc:include type="modules" name="user34" style="xhtml" />
		<?php echo "</div>\n";
	}
		
	echo "</div>\n";
	echo "<div style=\"clear:both; line-height:1px;\"> &nbsp;</div>	\n";
	echo "</div>\n";
	}
}
	